﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Reviewer.Entities.Services;
using Reviewer.Data;
using System.Web;
using Reviewer.Entities;
using System.Web.Caching;
using System.Collections.ObjectModel;

namespace Reviewer.Business.Services
{
    internal class GameVideoService : BaseService, IGameVideoService
    {
        internal GameVideoService() : base() { }

        /// <summary>
        /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
        /// </summary>
        public void Dispose()
        {
            GC.SuppressFinalize(this);
        }

        #region IGameVideoService Members

        public GameVideo FindBy(int id)
        {
            return new GameVideoRepository().SelectBy(id);
        }

        public ICollection<GameVideo> FindAllBy(Guid gameId)
        {
            return new GameVideoRepository().SelectByAlternateKey(gameId);
        }

        #endregion
    }
}
